import pygal_maps_world.maps

wm = pygal_maps_world.maps.World()
wm.title  = 'North, Central, and South America'
# 每一次调用add方法都会被指定的国家选择一种新颜色
wm.add('North America',['ca','mx','us'])
wm.add('Central America',['bz','cr','gt','hn','ni','pa','sv'])
wm.add('South America',['ar','bo','br','cl','co','ec','gf','gy','pe','sr','uy','ve'])
wm.render_to_file('americas.svg')
